package com.cultbook.mbean;

import java.util.Properties;

import javax.naming.InitialContext;
import javax.naming.NamingException;

public class Mbean {
InitialContext ctx;
	
	public Mbean() {
		Properties p = new Properties();		
		p.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
		p.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
		p.put("java.naming.provider.url", "localhost:1099");
		
		try {
			this.ctx = new InitialContext(p);			
		} catch (NamingException e) {
			e.printStackTrace();
		}
	}
}
